/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package yuhuibear.poat.exception;

import java.util.Collection;

/**
 * Bean 的属性缺失错误.
 * 
 * @author yuhuibear
 */
@SuppressWarnings("serial")
public class MissAttributesOfBean extends PoatException {

	public MissAttributesOfBean(Class<?> beanType, String atrName) {
		super(beanType.getName() + " has no attribute named: " + atrName);
	}

	public MissAttributesOfBean(Class<?> beanType, Collection<String> atrName,
			Collection<String> viewName) {
		super(beanType.getName() + " defined attributes: " + atrName
				+ ", while defining in view: " + viewName);
	}

	public MissAttributesOfBean(String beanName, String atrName) {
		super(beanName + " has no attribute named: " + atrName);
	}
}
